package com.cps.framecommon.domain.vo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Map;

/**
 * 这里是描述
 *
 * @author 曹培胜
 * @date 2023-02-09 15:20
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class WeightInfo {
    /**
     * 当前服务的负载数据有没有超过阈值
     */
    private Boolean thresholdExceeded;
    /**
     * 当前服务各副本的权重数据
     */
    private Map<String, Double> weightMap;

    public WeightInfo(Boolean thresholdExceeded) {
        this.thresholdExceeded = thresholdExceeded;
    }
}
